<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="resource/js/jquery-3.2.1.js"></script>
<title>Insert title here</title>
</head>
<body>
<script type="text/javascript">
	function toadd(){
		location.href="toadd";
	}
</script>
<table>
	<tr>
		<th>序号</th>
		<th>发薪单名称</th>
		<th>公司</th>
		<th>事业部</th>
		<th>部门</th>
		<th>发放总金额</th>
		<th>发薪人员</th>
		<th>创建时间</th>
		<th>文件/图片</th>
		<th>文件下载</th>
		<th>操作</th>
	</tr>
	<c:forEach items="${info.list }" var="c">
		<tr>
			<td></td>
			<td>${c.name }</td>
			<td>${c.company }</td>
			<td>${c.business }</td>
			<td>${c.dept }</td>
			<td>${c.account }</td>
			<td>${c.people }</td>
			<td>
				<fmt:formatDate value="${c.createtime }" pattern="yyyy-MM-dd"/>
			</td>
			<c:if test="${c.bills!=null&&c.bills!='' }">
				<td>${c.bills }</td>
				<td><a href="download" >下载</a></td>
			</c:if>
			
		</tr>
	</c:forEach>
	<tr>
		<td colspan="11">
			<input type="button" value="添加" onclick="toadd()">
		</td>
	</tr>
</table>
</body>
</html>